import { App } from "vue"
import { errorHandler } from "./error"
const before = (
    context: App<Element>,
    cb: (instance: App<Element>) => void,
) => {
    context.config.errorHandler = errorHandler as () => void
    cb && cb(context)
}

export default before
